class ProgressBar {
  constructor() {
    if (ProgressBar.instance) {
      return ProgressBar.instance;
    }
    ProgressBar.instance = this.instance = getCtpTop()?.$?.progressBar() || {
      init() { },
      close() { },
      show() { }
    };
    this.close();
    this.status = false;
  }
  close() {
    this.instance.close();
    this.status = false;
  }
  show() {
    if (this.status) return;
    this.instance.init();
    this.status = true;
  }
}
export const loadingInstance = new ProgressBar();






